using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region SendEmail

	/// <summary>
	/// SendEmail object for NHibernate mapped table 'SendEmail'.
	/// </summary>
	public class SendEmail
	{
		#region Member Variables
		
		protected int _id;
		protected string _userName;
		protected string _userEmail;
		protected bool _state;

		#endregion

		#region Constructors

		public SendEmail() { }

		public SendEmail( string userName, string userEmail, bool state )
		{
			this._userName = userName;
			this._userEmail = userEmail;
			this._state = state;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual string UserName
		{
			get { return _userName; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for UserName", value, value.ToString());
				_userName = value;
			}
		}

		public  virtual string UserEmail
		{
			get { return _userEmail; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for UserEmail", value, value.ToString());
				_userEmail = value;
			}
		}

		public  virtual bool State
		{
			get { return _state; }
			set { _state = value; }
		}

		

		#endregion
	}
	#endregion
}